from pythonds import heapm

ls = [1, 5, 9, 3, 6, 8, 4]
heapm.heapify(ls)
heapm.heappush(ls, 11)
heapm.heappush(ls, 7)
heapm.heappop(ls)


def test():
    ls = [1, 5, 9, 3, 6, 8, 4]
    heapm.heapify(ls)
    heapm.heappush(ls, 11)
    heapm.heappush(ls, 7)
    heapm.heappop(ls)
    print([heapm.heappop(ls) for _ in range(len(ls))])
